package com.qf.anno.mapper;

import com.qf.anno.domain.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    @Select("select * from user where username=#{uname} and password=#{pwd}")
    @ResultMap("userMap")
    User findByUnameAndPwd(@Param("uname") String uname, @Param("pwd") String pwd);
}
